package pers.zh.parking.po;

import java.util.ArrayList;
import java.util.List;

public class EvaluationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EvaluationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEvalIdIsNull() {
            addCriterion("eval_id is null");
            return (Criteria) this;
        }

        public Criteria andEvalIdIsNotNull() {
            addCriterion("eval_id is not null");
            return (Criteria) this;
        }

        public Criteria andEvalIdEqualTo(Integer value) {
            addCriterion("eval_id =", value, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdNotEqualTo(Integer value) {
            addCriterion("eval_id <>", value, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdGreaterThan(Integer value) {
            addCriterion("eval_id >", value, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("eval_id >=", value, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdLessThan(Integer value) {
            addCriterion("eval_id <", value, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdLessThanOrEqualTo(Integer value) {
            addCriterion("eval_id <=", value, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdIn(List<Integer> values) {
            addCriterion("eval_id in", values, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdNotIn(List<Integer> values) {
            addCriterion("eval_id not in", values, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdBetween(Integer value1, Integer value2) {
            addCriterion("eval_id between", value1, value2, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalIdNotBetween(Integer value1, Integer value2) {
            addCriterion("eval_id not between", value1, value2, "evalId");
            return (Criteria) this;
        }

        public Criteria andEvalContentIsNull() {
            addCriterion("eval_content is null");
            return (Criteria) this;
        }

        public Criteria andEvalContentIsNotNull() {
            addCriterion("eval_content is not null");
            return (Criteria) this;
        }

        public Criteria andEvalContentEqualTo(String value) {
            addCriterion("eval_content =", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentNotEqualTo(String value) {
            addCriterion("eval_content <>", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentGreaterThan(String value) {
            addCriterion("eval_content >", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentGreaterThanOrEqualTo(String value) {
            addCriterion("eval_content >=", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentLessThan(String value) {
            addCriterion("eval_content <", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentLessThanOrEqualTo(String value) {
            addCriterion("eval_content <=", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentLike(String value) {
            addCriterion("eval_content like", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentNotLike(String value) {
            addCriterion("eval_content not like", value, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentIn(List<String> values) {
            addCriterion("eval_content in", values, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentNotIn(List<String> values) {
            addCriterion("eval_content not in", values, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentBetween(String value1, String value2) {
            addCriterion("eval_content between", value1, value2, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalContentNotBetween(String value1, String value2) {
            addCriterion("eval_content not between", value1, value2, "evalContent");
            return (Criteria) this;
        }

        public Criteria andEvalLevelIsNull() {
            addCriterion("eval_level is null");
            return (Criteria) this;
        }

        public Criteria andEvalLevelIsNotNull() {
            addCriterion("eval_level is not null");
            return (Criteria) this;
        }

        public Criteria andEvalLevelEqualTo(Integer value) {
            addCriterion("eval_level =", value, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelNotEqualTo(Integer value) {
            addCriterion("eval_level <>", value, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelGreaterThan(Integer value) {
            addCriterion("eval_level >", value, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("eval_level >=", value, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelLessThan(Integer value) {
            addCriterion("eval_level <", value, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelLessThanOrEqualTo(Integer value) {
            addCriterion("eval_level <=", value, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelIn(List<Integer> values) {
            addCriterion("eval_level in", values, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelNotIn(List<Integer> values) {
            addCriterion("eval_level not in", values, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelBetween(Integer value1, Integer value2) {
            addCriterion("eval_level between", value1, value2, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("eval_level not between", value1, value2, "evalLevel");
            return (Criteria) this;
        }

        public Criteria andEvalStatusIsNull() {
            addCriterion("eval_status is null");
            return (Criteria) this;
        }

        public Criteria andEvalStatusIsNotNull() {
            addCriterion("eval_status is not null");
            return (Criteria) this;
        }

        public Criteria andEvalStatusEqualTo(Integer value) {
            addCriterion("eval_status =", value, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusNotEqualTo(Integer value) {
            addCriterion("eval_status <>", value, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusGreaterThan(Integer value) {
            addCriterion("eval_status >", value, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("eval_status >=", value, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusLessThan(Integer value) {
            addCriterion("eval_status <", value, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusLessThanOrEqualTo(Integer value) {
            addCriterion("eval_status <=", value, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusIn(List<Integer> values) {
            addCriterion("eval_status in", values, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusNotIn(List<Integer> values) {
            addCriterion("eval_status not in", values, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusBetween(Integer value1, Integer value2) {
            addCriterion("eval_status between", value1, value2, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andEvalStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("eval_status not between", value1, value2, "evalStatus");
            return (Criteria) this;
        }

        public Criteria andRecordIdIsNull() {
            addCriterion("record_id is null");
            return (Criteria) this;
        }

        public Criteria andRecordIdIsNotNull() {
            addCriterion("record_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecordIdEqualTo(Integer value) {
            addCriterion("record_id =", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotEqualTo(Integer value) {
            addCriterion("record_id <>", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThan(Integer value) {
            addCriterion("record_id >", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("record_id >=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThan(Integer value) {
            addCriterion("record_id <", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdLessThanOrEqualTo(Integer value) {
            addCriterion("record_id <=", value, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdIn(List<Integer> values) {
            addCriterion("record_id in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotIn(List<Integer> values) {
            addCriterion("record_id not in", values, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdBetween(Integer value1, Integer value2) {
            addCriterion("record_id between", value1, value2, "recordId");
            return (Criteria) this;
        }

        public Criteria andRecordIdNotBetween(Integer value1, Integer value2) {
            addCriterion("record_id not between", value1, value2, "recordId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}